package com.chenl.consumer.DEMOS.幂等注解;

import com.chenl.consumer.vo.Student;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Max;

@Data
public class UserInfo {
    UserInfo userInfo;
    Student student;
    private String name;
    private String age;
    private String phone;
    @Range(min = 10,max = 20)
    private Integer age2;
    @Max(30)
    private Integer age3;

}